#ifndef ADD_PURCHASEDIALOG_H
#define ADD_PURCHASEDIALOG_H

#include <wx/wx.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
#include <wx/datectrl.h> // 确保包含日期选择器头文件
#include <wx/spinctrl.h>

#include "../book_info.h"

class AddPurchaseDialog : public wxDialog {
public:
    AddPurchaseDialog(wxWindow* parent);

    // 获取用户输入的采购信息
    PurchaseInfo GetPurchaseInfo() const;

private:
    void OnOK(wxCommandEvent& event);
    void OnCancel(wxCommandEvent& event);

    wxTextCtrl* m_bookIdCtrl;
    wxSpinCtrl* m_quantityCtrl;
    wxDatePickerCtrl* m_dateCtrl;
    wxTextCtrl* m_priceCtrl;

    DECLARE_EVENT_TABLE()
};



#endif // ADD_PURCHASEDIALOG_H